package cn.silver.module.authority.domain;

import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.mybatis.annotation.TableField;
import cn.silver.framework.mybatis.enums.SearchEnums;
import cn.silver.framework.mybatis.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;

/**
 * 租户菜单对象 sys_tenant_menu
 *
 * @author Silver Zhou
 */
@Data
@NoArgsConstructor
@Table(name = "sys_tenant_menu")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "SysTenantMenu", title = "租户菜单关联信息", description = "租户菜单关联信息")
public class SysTenantMenu extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(title = "租户主键")
    @TableField(name = "tenant_id", searchType = SearchEnums.EQ)
    private String tenantId;
    @Schema(title = "菜单主键")
    @TableField(name = "menu_id", searchType = SearchEnums.EQ)
    private String menuId;

}
